package com.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.project.bean.ExpertBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 专家
 */
public interface ExpertService extends IService<ExpertBean> {

    /**
     * 分页显示
     * @param pageNO
     * @param pageSize
     * @return
     */
    IPage<ExpertBean>findAllExpert(int pageNO,int pageSize);


    /**
     * 添加
     * @param expertBean
     */
    void addExpert(ExpertBean expertBean);


    /**
     * id查询
     * @param expertId
     * @return
     */
    ExpertBean findId(@Param("expertId") int expertId);

    /**
     *id去修改专家电话、职务、工作单位、邮箱
     * @param expertId
     * @param expertTel
     * @param expertJop
     * @param expertUnit
     * @param expertEmail
     */
    void updateExpert(int expertId,String expertTel,String expertJop,String expertUnit,String expertEmail);


    /**
     *id删除专家
     * @param expertId
     */
    void delExpert(int expertId);


    /**
     *姓名，专长，工作单位模糊查询专家信息
     * @param expertName
     * @param expertSpecialty
     * @param expertUnit
     * @return
     */
    IPage<ExpertBean> findName(int pageNO,int pageSize,String expertName, String expertSpecialty, String expertUnit);
}
